'''
Created on 14.12.2012

@author: fre
'''
from game import GameLogic
from game.player.alpha_beta_player.alpha_beta_framework.heuristic.CompleteFieldHeuristic import CompleteFieldHeuristic


class GroupHeuristic(CompleteFieldHeuristic):
    '''
    classdocs
    '''
        
        
    def heuristic(self, field, action, color, nextColor, depth):
        return len(GameLogic.getNeighboursOfSameColor(field, action))